//规则结果DAO
package com.trkj.dao.hjj;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.Attendancerule;

public interface AttendanceruleDAO extends CrudRepository<Attendancerule, Long>{
	@Query("from Attendancerule a")
	public List<Attendancerule> findPageAttendancerule(Pageable page);
	
	@Query("from Attendancerule a where a.attruName like ?1")
	public List<Attendancerule> findPageAttendByName(String attruName,Pageable page);
}
